package com.leoblog.test.action;

import com.leoblog.action.TestAction;
import com.leoblog.domain.Test;
import com.leoblog.service.impl.TestServiceImpl;
import com.leoblog.test.base.AbstractUTestBaseSpringServiceActionTestCase;

public class UTestBaseAction extends AbstractUTestBaseSpringServiceActionTestCase {
	
	private TestAction actionTest;

	public void setActionTest(TestAction actionTest) {
		this.actionTest = actionTest;
	}

	public void testDomainFieldSet()
	{
		assertEquals("Domain field class set incorrect.", 
				Test.class, actionTest.getDomain().getClass());
	}
	
	public void testServiceFieldSet()
	{
		
		assertEquals("Service field class set incorrect.", 
				TestServiceImpl.class, actionTest.getService().getClass().getSuperclass());
	}
}
